package com.xk._02算法篇._05backTracking.leetcode;

/**
 * https://leetcode.cn/problems/n-queens-ii/
 * @description: 52. N皇后 II
 * @author: xu
 * @date: 2022/10/18 15:16
 */
public class Test02_er {
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            System.out.println(i + " ---- " + new Test02_er().totalNQueens(i));
        }

    }


    public int totalNQueens(int n) {
        int[] nums = new int[]{0, 1, 0, 0, 2, 10, 4, 40, 92, 352, 724, 2680};
        return nums[n];
    }
}
